package com.ml.mall.mapper.detail;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ml.mall.bean.req.ProductCartReq;
import com.ml.mall.bean.vo.OrderDetailArrVO;
import com.ml.mall.entity.detail.SysOrderDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
* <p>
    *  Mapper 接口
    * </p>
*
* @author kyyang
* Created 2021-05-24
*/
@Mapper
@Repository
public interface SysOrderDetailMapper extends BaseMapper<SysOrderDetail> {

    //根据订单号卖家ID查询：OrderDetailArrVO；
    List<OrderDetailArrVO> selectOrdertailByOidAndSupplierId(@Param("oid") Long oid, @Param("supplierId") Long supplierId);

    List<SysOrderDetail> selectOrdertailByOid(@Param("oid") Long oid);

    List<ProductCartReq> getProductCartReqsByOid(@Param("oid") Long oid);
}
